
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/failure/failureLookup" onsubmit="return  dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="failureCode"><@label key="failureCode.C,colon">故障代码：</@label></label> <input type="text" name="failureCode" value="${condition.failureCode!''}" />
                </li>
                <li><label id="failureText"><@label key="failureText.C,colon">故障描述：</@label></label> <input type="text" name="failureText" value="${condition.failureText!''}" />
                </li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div></li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <table class="table border" width="100%" layoutH="134" style="overflow: scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="100" orderField="failureCode"<#if (page.orderField?? && page.orderField == 'failureCode')>class="${page.orderDirection!''}"</#if>><@label key="failureCode.C">故障代码</@label></th>
                <th width="100" orderField="failureText"<#if (page.orderField?? && page.orderField == 'failureText')>class="${page.orderDirection!''}"</#if>><@label key="failureText.C">故障描述</@label></th>
                <th width="100"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as failure>
            <tr target="failure_code" rel="${failure.failureCode!''}">
                <td><input name="ids" value="${failure.failureCode!''}" type="checkbox">
                </td>
                <td>${failure.failureCode!''}</td>
                <td>${failure.failureText!''}</td>
                <td><a class="btnSelect bringBack" value="failureCode:'${failure.failureCode!''}', failureText:'<@json_escape>${failure.failureText!''}</@json_escape>'" >选择</a></td>        
            </tr>
            </#list> <#else>
            <tr target="failure_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="failure_id">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
<#include "/common/dialogPanelBar.html">
</div>